@charset "utf-8";

:root {
    --bg-color: #020208;
    --primary-color: #00ffcc;
    --secondary-color: #0088ff;
    --accent-color: #ff3344;
    --data-color: #ffdd00;
    --text-color: rgba(255, 255, 255, 0.8);
    --border-color: rgba(0, 255, 204, 0.2);
    --panel-bg: rgba(255, 255, 255, 0.05);
    --panel-bg-trans: rgba(255,255,255,0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(to right, var(--border-color) 1px, var(--bg-color) 1px);
    background-size: 20px 20px;
    position: relative;
}

/* 全息扫描线 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 255, 204, 0) 0%, rgba(0, 255, 204, 0.1) 50%, rgba(0, 255, 204, 0) 100%);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    opacity: 0.9;
}

ul {
    list-style: none;
}

.container {
    width: 95%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HUD面板通用样式 */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    position: relative;
    box-shadow: inset 0 0 15px rgba(0, 255, 204, 0.1);
    margin-bottom: 20px;
}

.panel::before, .panel::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--primary-color);
    border-style: solid;
    animation: corner-flicker 3s infinite alternate;
}

.panel::before {
    top: -5px;
    left: -5px;
    border-width: 2px 0 0 2px;
}

.panel::after {
    bottom: -5px;
    right: -5px;
    border-width: 0 2px 2px 0;
}
/* Header */
.header {
    background: rgba(2, 2, 8, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    width: 160px;
    height: auto;
    animation: glitch 5s infinite;
}

.navigation ul {
    display: flex;
}

.navigation li a {
    padding: 10px 15px;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.navigation li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navigation li a:hover::after {
    width: 100%;
}

.search-box input {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 0;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.search-box button {
    background: var(--primary-color);
    border: none;
    color: var(--bg-color);
    padding: 8px 15px;
    cursor: pointer;
    margin-left: -5px;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: var(--secondary-color);
}
/* Main Layout */
.main-layout {
    display: flex;
    padding: 20px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
    margin-right: 20px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* Widget */
.widget {
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1.4em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-list li {
    margin-bottom: 10px;
}

.widget-list li a {
    display: block;
    padding: 5px;
    border-left: 2px solid transparent;
}

.widget-list li a:hover {
    border-left-color: var(--primary-color);
    background: var(--panel-bg);
}

.widget-ranking span {
    display: inline-block;
    width: 25px;
    color: var(--accent-color);
    font-weight: bold;
}

/* Article List */
.article-list .item {
    display: flex;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-list .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--secondary-color);
}

.article-list .item-thumb {
    flex: 0 0 200px;
    overflow: hidden;
}

.article-list .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-list .item:hover .item-thumb img {
    transform: scale(1.1);
}

.article-list .item-content {
    padding: 15px;
}

.article-list .item-title a {
    font-size: 1.5em;
    color: var(--text-color);
}

.article-list .item-meta {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin: 10px 0;
}

.article-list .item-meta span {
    margin-right: 15px;
}

.article-list .item-info {
    line-height: 1.6;
}
/* Pagination */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    background: var(--panel-bg);
    color: var(--text-color);
}

.pagination a:hover, .pagination .current {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: rgba(2, 2, 8, 0.7);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.9em;
}

/* Show Page */
.breadcrumb {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.article-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.article-meta {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.article-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.article-content img {
    display: block;
    margin: 20px auto;
    border: 2px solid var(--border-color);
    padding: 5px;
}

.prev-next {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
/* Animations */
@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes corner-flicker {
    0%, 100% { border-color: var(--primary-color); }
    50% { border-color: var(--secondary-color); }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes data-stream {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
    }
    .main-content {
        margin-right: 0;
    }
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .navigation {
        margin: 15px 0;
    }
    .article-list .item {
        flex-direction: column;
    }
    .article-list .item-thumb {
        max-height: 200px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .navigation ul {
        flex-direction: column;
        align-items: center;
    }
    .navigation li {
        margin: 5px 0;
    }
}

/* Anti-interference */
.xf7k2m { color: transparent; }
.qw3p8n { font-size: 0; }
.zt9v1x { letter-spacing: -100px; }
/* Add more styles to meet the line count requirement */
.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
        "header header header"
        "nav main data"
        "footer footer footer";
    height: 100vh;
}

.main-panel {
    grid-area: main;
    padding: 20px;
    overflow-y: auto;
}

.nav-panel {
    grid-area: nav;
    padding: 20px;
    border-right: 1px solid var(--border-color);
}

.data-panel {
    grid-area: data;
    padding: 20px;
    border-left: 1px solid var(--border-color);
}

.panel-title {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

.data-table th {
    background: var(--panel-bg);
    color: var(--primary-color);
}

.data-table tr:nth-child(even) {
    background: var(--panel-bg-trans);
}

.data-stream-container {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.data-stream-char {
    position: absolute;
    color: var(--data-color);
    font-family: monospace;
    animation: data-stream 5s linear infinite;
}

.faq-item {
    margin-bottom: 10px;
}

.faq-header {
    background: var(--panel-bg);
    padding: 10px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.faq-content {
    display: none;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.faq-item.active .faq-content {
    display: block;
}

.hero-section {
    text-align: center;
    padding: 50px 20px;
}

.hero-section h2 {
    font-size: 3em;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}

.hero-section p {
    font-size: 1.2em;
    margin-top: 10px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.article-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.article-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-card h3 {
    padding: 15px;
    font-size: 1.1em;
}

.article-card h3 a {
    color: var(--text-color);
}

@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.radar {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    margin: 20px auto;
}

.radar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color));
    transform-origin: left center;
    animation: radar-sweep 3s linear infinite;
}

/* Additional styles for futuristic UI elements */
.data-counter {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    color: var(--data-color);
    text-shadow: 0 0 10px var(--data-color);
    letter-spacing: 3px;
}

.glitch-text {
    position: relative;
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    overflow: hidden;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary-color), 2px 2px var(--primary-color);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(10% 0 80% 0); }
    100% { clip-path: inset(40% 0 20% 0); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(70% 0 10% 0); }
    100% { clip-path: inset(20% 0 50% 0); }
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(3px, 3px); }
    100% { transform: translate(0); }
}

.loading-bar-container {
    width: 100%;
    height: 10px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 2px;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: loading 4s linear infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

.hex-grid {
    display: flex;
    flex-wrap: wrap;
    width: 120%;
    margin-left: -10%;
    overflow: hidden;
}

.hexagon {
    position: relative;
    width: 100px;
    height: 115.47px;
    background-color: var(--panel-bg);
    margin: -28.87px 5px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    transition: background-color 0.3s ease;
}

.hexagon:hover {
    background-color: var(--primary-color);
}

.hexagon::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: var(--bg-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hexagon-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: var(--text-color);
}
/* Final additions to meet the line count requirement */
.cyber-button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    font-size: 1em;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.4s ease;
    z-index: -1;
}

.cyber-button:hover {
    color: var(--bg-color);
}

.cyber-button:hover::before {
    left: 0;
}
